package com.qpx.springbootdemo1.service.impl;

import com.qpx.springbootdemo1.entity.User;
import com.qpx.springbootdemo1.mapper.UserMapper;
import com.qpx.springbootdemo1.service.IUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2019-11-29
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {


    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> getUserRoleByUID(Integer uid) {
        return userMapper.getUserRoleByUID(uid);
    }
}
